package io.renren.modules.sys.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * 财务子表
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2018-11-22 14:29:35
 */
@TableName("accountitem")
public class AccountitemEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId
	private Long id;
	/**
	 * 表头Id
	 */
	private Long headerid;
	/**
	 * 账户Id
	 */
	private Long accountid;
	/**
	 * 收支项目Id
	 */
	private Long inoutitemid;
	/**
	 * 单项金额
	 */
	private Double eachamount;
	/**
	 * 单据备注
	 */
	private String remark;

	public AccountitemEntity(){}

	public AccountitemEntity(Long id) {
		this.id = id;
	}

	public AccountitemEntity(Long headerid, Long accountid, Long inoutitemid, Double eachamount, String remark) {
		this.headerid = headerid;
		this.accountid = accountid;
		this.inoutitemid = inoutitemid;
		this.eachamount = eachamount;
		this.remark = remark;
	}

	/**
	 * 设置：主键
	 */
	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * 获取：主键
	 */
	public Long getId() {
		return id;
	}
	/**
	 * 设置：表头Id
	 */
	public void setHeaderid(Long headerid) {
		this.headerid = headerid;
	}
	/**
	 * 获取：表头Id
	 */
	public Long getHeaderid() {
		return headerid;
	}
	/**
	 * 设置：账户Id
	 */
	public void setAccountid(Long accountid) {
		this.accountid = accountid;
	}
	/**
	 * 获取：账户Id
	 */
	public Long getAccountid() {
		return accountid;
	}
	/**
	 * 设置：收支项目Id
	 */
	public void setInoutitemid(Long inoutitemid) {
		this.inoutitemid = inoutitemid;
	}
	/**
	 * 获取：收支项目Id
	 */
	public Long getInoutitemid() {
		return inoutitemid;
	}
	/**
	 * 设置：单项金额
	 */
	public void setEachamount(Double eachamount) {
		this.eachamount = eachamount;
	}
	/**
	 * 获取：单项金额
	 */
	public Double getEachamount() {
		return eachamount;
	}
	/**
	 * 设置：单据备注
	 */
	public void setRemark(String remark) {
		this.remark = remark;
	}
	/**
	 * 获取：单据备注
	 */
	public String getRemark() {
		return remark;
	}
}
